//
//  HttpServices.h
//  CheXunWang
//
//  Created by zhu lin on 12/10/11.
//  Copyright 2011 Zhulin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSON.h"
@class ASIHTTPRequest;

@interface HttpServices : NSObject {

}

+ (ASIHTTPRequest *)getBrandsByBrandID:(NSString *)brandID 
			  andBrandName:(NSString *)brandName 
				  delegate:(id)del;
+ (ASIHTTPRequest *)getSeriesInfoByBrandID:(NSString *)brandID 
						   companyID:(NSString *)companyID
							seriesID:(NSString *)seriesID  
						  seriesName:(NSString *)seriesName 
						  priceScope:(NSString *)scope
							delegate:(id)del;
+ (ASIHTTPRequest *)getModellistBySeriesID:(NSString *)seriesID
								priceScope:(NSString *)scope
								  delegate:(id)del;
+ (ASIHTTPRequest *)getModelDetailByModelID:(NSString *)modelID delegate:(id)del;
+ (ASIHTTPRequest *)getPhotoListBySeriesId:(NSString *)seriesID 
								   modelId:(NSString *)modelID 
								  pagekeys:(NSString *)pageIndex 
								  pagesize:(NSString *)pageSize 
							   andDelegate:(id)del;
+ (ASIHTTPRequest *)getCarPhotoCountBySeriesId:(NSString *)seriesId 
									   modelId:(NSString *)modelId 
								   andDelegate:(id)del;
+ (ASIHTTPRequest *)getLatestNewsWithDelegate:(id)del;

+ (NSURL *)URLWithBaseString:(NSString *)baseString 
				  parameters:(NSDictionary *)parameters;
+ (NSString *)encodedAndTrimedParam:(NSString *)param;
+ (NSString *)encodeURLParam:(NSString *)param;

+ (NSMutableArray *)groupArray:(NSArray *)ungroupedArray byKey:(NSString *)key;
@end
